use super::*;

// https://fontforge.org/docs/techref/non-standard.html#non-standard-fftm
#[derive(Debug, Clone, Copy)]
pub struct Table {
	pub version: u32,
	pub src_date: LongDateTime,
	pub create_date: LongDateTime,
	pub modify_date: LongDateTime,
}
impl FromData for Table {
	const SIZE: usize = 28;
	fn parse(data: &[u8]) -> Option<Self> {
		let mut s = Stream::new(data);
		Some(Self {
			version: s.read()?,
			src_date: s.read()?,
			create_date: s.read()?,
			modify_date: s.read()?,
		})
	}
}
